package com.entor.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.entor.model.TClass;

public interface TClassRepository  extends CrudRepository<TClass, Integer>{
	
	public List<TClass> findByName(String name);
	
	@Query("select tc from TClass tc where tc.id=:id and tc.name=:name")
	public List<TClass> findByName(@Param("id")Integer id,@Param("name") String name);

}
